//
//  BaseCollectionViewCell.m
//  GameBoss
//
//  Created by dllo on 15/4/22.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "BaseCollectionViewCell.h"

@implementation BaseCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    return self;
}
-(void)layoutSubviews{
#pragma mark 夜间模式
    if ([NightMode shareNightMode].isNight) {
        [self setNightDayModel];
    } else {
        [self setLightDayModel];
    }
    //注册通知中心, 接到通知执行方法
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(setLightDayModel) name:@"LightDayNSNotification" object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(setNightDayModel) name:@"NightDayNSNotification" object:nil];
}
#pragma mark 夜间模式
//执行的方法
- (void)setLightDayModel {
//    NSLog(@"-------设置白天模式");
}

- (void)setNightDayModel {
//    NSLog(@"-------设置夜晚模式");
}

- (void)dealloc
{
    // 必须在dealloc方法中移除观察
    [[NSNotificationCenter defaultCenter] removeObserver:self];
    
    [super dealloc];
}
@end
